package org.example.provider.service;


import org.example.model.User;
import org.example.provider.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
//    @Autowired
//    private RedisTemplate redisTemplate;

    @Override
    public List<User> listUsers() {

//        redisTemplate.opsForValue().set("id","123");

        return userDao.selectUsers();
    }
}
